import { defineProps, reactive,withDefaults } from 'vue';
import {type Persons} from '../preson'
export default function () {
//接收限制类型    
//defineProps<{list:Persons}>()
  //接收list 限制类型 限制必要性 指定默认值
  let list1 = reactive([{id:'asdasg01',name:'小猪佩奇',age:18}])  
    
    // let props = withDefaults(defineProps<{list?:Persons}>(),{
    //     list:()=>[{id:'asdasg01',name:'小猪佩奇',age:18}]
    // })
  return {list1}
}
